﻿using System.Windows;
using System.Windows.Controls;

namespace FazaDemo.PL.Wpf
{
    class CheckBoxFactory : IVisualElemFactory
    {

        private bool _isChecked;

        public CheckBoxFactory(bool isChecked)
        {
            _isChecked = isChecked;
        }

        public UIElement Create()
        {
            return new CheckBox{IsChecked = _isChecked};
        }
    }
}